package common.com.androidbase.fresco;

import android.app.Application;
import android.graphics.Bitmap;

import com.android.sohu.sdk.common.toolbox.LogUtils;
import com.common.sdk.net.connect.http.ImageRequestManager;
import com.common.sdk.net.connect.http.center.tools.CacheUtils;
import com.common.sdk.net.connect.http.model.AppBaseInfo;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.facebook.imagepipeline.listener.RequestListener;
import com.facebook.imagepipeline.listener.RequestLoggingListener;
import com.facebook.imagepipeline.producers.NetworkFetcher;
import com.sohu.trafficstatistics.util.TrafficStatisticUtil;

import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

import common.com.androidbase.download.DownloadApplition;

/**
 * Created by sangchengjiang on 16/8/2.
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        LogUtils.setDebugMode(true);

        CacheUtils.initiateDirectory(this);
        AppBaseInfo baseInfo = new AppBaseInfo();
        baseInfo.setUid("561e78867b81cba5f4527656a351252e");
        ImageRequestManager.initialize(this);
        TrafficStatisticUtil.initialize(this);

        DownloadApplition.onCreate(getApplicationContext());
    }

}
